const mongoose = require('mongoose');
mongoose.connect("mongodb://goods:5d6FhDC6TSzDbB6b@8.130.69.127:27017/goods")
const db = mongoose.connection
db.on("open",()=>{
    console.log("链接成功");
})
db.on("error",()=>{
    console.log("链接失败");
})

module.exports=mongoose